From: Roger Pau Monne Date: Wed, 8 Nov 2017 12:52:57 +0000 (+0000) Subject: libevtchn: fix build on non-Linux hosts X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1038 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=3b2966e72c414592cd2c86c21a0d4664cf627b9c;p=xen.git libevtchn: fix build on non-Linux hosts Non-Linux hosts (where osdep_evtchn_restrict is not yet supported) made use of errno without including errno.h, fix this by including the header. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Release-acked-by: Julien Grall --- diff --git a/tools/libs/evtchn/freebsd.c b/tools/libs/evtchn/freebsd.c index ba82f06311..6564ed4c44 100644 --- a/tools/libs/evtchn/freebsd.c +++ b/tools/libs/evtchn/freebsd.c @@ -19,6 +19,7 @@ * Split off from xc_freebsd_osdep.c */ +#include #include #include diff --git a/tools/libs/evtchn/netbsd.c b/tools/libs/evtchn/netbsd.c index 5ce3a35f80..8b8545d2f9 100644 --- a/tools/libs/evtchn/netbsd.c +++ b/tools/libs/evtchn/netbsd.c @@ -19,6 +19,7 @@ * Split out from xc_netbsd.c */ +#include #include #include diff --git a/tools/libs/evtchn/solaris.c b/tools/libs/evtchn/solaris.c index f718989450..dd41f62a24 100644 --- a/tools/libs/evtchn/solaris.c +++ b/tools/libs/evtchn/solaris.c @@ -19,6 +19,7 @@ * Split out from xc_solaris.c */ +#include #include #include